package com.itheima.dao;

import com.itheima.pojo.User;

import java.util.List;

/**
 * @author zhangyan
 * @date 2021/2/21 9:46
 */
public interface UserDao {

    //根据id查询
    public User findById(Integer id);
    //新增
    public void add(User user);
    //查询所有
    public List<User> findAll();
    //根据id删除
    public void delete(Integer id);
    //修改
    public void update(User user);
}
